C (227/301)

From:Martyn Capewell
Date:07 Aug 99 at 12:52:54
Subject:Re: Menus and Hooks - well, Menus actually.

From: Martyn Capewell <martyn@jubileeweb.freeserve.co.uk>

Hello DonaldWM@stonelawdrive.freeserve.co.uk

On 07-Aug-99, you wrote:

> From: DonaldWM@stonelawdrive.freeserve.co.uk
>
>> Is this the right way to do shortcuts? How can I >add the <A> graphic?
>
> Menu shortcuts are really easy, just look at the following NewMenu
> structure:
>
> struct NewMenu main_menu[] =
> {
> {NM_TITLE,"Main",0,0,0,0,},
> {NM_ITEM,"New","N",0,0,0,},
> {NM_ITEM,"Load","L",0,0,0,},
> {NM_ITEM,"Save","S",0,0,0,},
> {NM_ITEM,"About","A",0,0,0,},
> {NM_ITEM,"Quit","Q",0,0,0,},
> {NM_END,NULL,0,0,0,0,},
> };
>

Thanks. After removing the NM_COMMANDSTRING flag from the flags field in my
structure, it all worked.

Regards



- Martyn Capewell
{ Compsci, University of Cambridge }
{ http://members.xoom.com/legerdemain0 }